package com.ruoyi.youtian.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/page-route")
public class PageRouteController {


    /**
     * 实时监测
     * @return
     */
    @RequiresPermissions("tongji:fault-statistics-analysis:view")
    @GetMapping("/tongji/fault-statistics-analysis")
    public String faultStatisticAnalysis(){
        return  "tongji/fault-statistics-analysis";
    }

    /**
     * 故障统计分析
     * @return
     */
    @RequiresPermissions("tongji:guzhangtongjifenxi:view")
    @GetMapping("/tongji/guzhangtongjifenxi")
    public String guzhangtongjifenxi(){
        return  "tongji/guzhangtongjifenxi";
    }

    /**
     * 场景类型分析
     * @return
     */
    @RequiresPermissions("tongji:scene-type-detection:view")
    @GetMapping("/tongji/scene-type-detection")
    public String senceTypeDetection(){
        return  "tongji/scene-type-detection";
    }

    @RequiresPermissions("tongji:gzmx-basics:view")
    @GetMapping("/gzmx_basics")
    public String gzmxBasics(){
        return  "gzmx_basics/index";
    }

    /**
     * 故障分析列表
     * @return
     */
    @RequiresPermissions("tongji:fault-analysis-list:view")
    @GetMapping("/fault-analysis-list")
    public String faultAnalysisList(){
        return  "tongji/fault_list";
    }

    /**
     * 故障报告详情
     * @return
     */
    @RequiresPermissions("tongji:fault-analysis-detail:view")
    @GetMapping("/fault-analysis-table")
    public String faultTable(){
        return  "tongji/fault/fault-table";
    }

    /**
     * 模型设计
     * @return
     */
    @RequiresPermissions("tongji:template:edit")
    @GetMapping("/template-edit")
    public String templateEdit(){
        return  "youtian/template/edit/index";
    }

    /**
     * 故障预测设置
     * @return
     */
    @RequiresPermissions("tongji:forecast:edit")
    @GetMapping("/forecast-edit")
    public String forecastEdit(){
        return  "tongji/forecast-edit";
    }

    /**
     *预警监控
     * @return
     */
    @RequiresPermissions("tongji:forecastmonitor:view")
    @GetMapping("/forecastmonitor")
    public String forecastmonitor(){
        return  "tongji/forecastmonitor";
    }

    /**
     * 预警查询
     * @return
     */
    @RequiresPermissions("tongji:forecastview:view")
    @GetMapping("/forecast-view")
    public String forecastview(){
        return  "tongji/forecastview";
    }

    /**
     * 设备管理
     * @return
     */
    @RequiresPermissions("youtian:device:view")
    @GetMapping("/device-view")
    public String deviceView(){
        return  "youtian/device/device";
    }

    @RequiresPermissions("youtian:dianwei:view")
    @GetMapping("/dianwei-view")
    public String dianwei(){
        return  "youtian/dianwei/dianwei";
    }

    /**
     *设备统计告警
     * @return
     */
    @RequiresPermissions("youtian:Equipment:view")
    @GetMapping("/templates-tongjiNew")
    public String Typestatisticsalarm(){
        return  "tongjiNew/Equipmentstatisticsalarm/equipmentstatisticsalarm";
    }
}
